<?php
/**
 * FecShop file.
 *
 * @link http://www.fecshop.com/
 * @copyright Copyright (c) 2016 FecShop Software LLC
 * @license http://www.fecshop.com/license/
 */
?>
<div class="category_left_filter">
<?php
//var_dump($parentThis['filter_price']);
//echo 1;
//echo Yii::$service->url->category->urlFormat('df-_ ??&sad');
if(isset($parentThis['filter_price']) && !empty($parentThis['filter_price']) && is_array($parentThis['filter_price'])){
	
	foreach($parentThis['filter_price']  as $attr => $filter){
		$attrUrlStr = Yii::$service->url->category->attrValConvertUrlStr($attr);
		if(is_array($filter) && !empty($filter)){
			echo '<div class="filter_attr">';
			echo '<div class="filter_attr_title">'.Yii::$service->page->translate->__($attr).'</div>';
			echo '<div class="filter_attr_info">';
			foreach($filter as $item){
				$val = $item['val'];
				$url = $item['url'];
				$selected = $item['selected'] ? 'class="checked"' : '';
				if($val && $url){
					echo '<a external '.$selected.'  href="'.$url.'">'.$val.'</a><br/>';
				}
			}
			echo '</div>';
			echo '</div>';
		}
	}
}
?>
</div>